//读取首页的banner图片
function getBannerImg(that, url){
  wx.request({
    url: url,
    method: 'get',
    header: {
      "content-type": "json"
    },
    success: function (res) {
      that.setData({
        bannerImgs: res.data
      });
    },
    fail: function (error) {
      console.log(error)
    }
  })
}
module.exports = getBannerImg







